package ui.juego

import javax.swing.ImageIcon
import javax.swing.JFrame
import javax.swing.JLabel

class ImagenFinal extends JFrame {
	
	val imgBuenas = new ImageIcon("../carmensd-ui/src/main/resources/images/buenas.jpg")
	val imgMalas = new ImageIcon("../carmensd-ui/src/main/resources/images/malas.jpg")
	
	new(boolean gano) {
		super()
		var JLabel tag
		if(gano) {
			title = "Buenas noticias!!"
			tag = new JLabel(imgBuenas)
		} else {
			title = "Malas noticias!!"
			tag = new JLabel(imgMalas)
		}
		contentPane.add(tag)
		setLocationRelativeTo(null)
		setSize(500, 400)
	}
	
}